const Mock = require('mockjs')

export const reqMenu = Mock.mock('/menu', 'get', {
  data: [
    {
      id: 1, // 主键
      name: '患者管理', // 名称
      menuCode: 'Patient', // 菜单编码
      parentId: 0, // 父节点
      iconUrl: '', // 图标地址
      linkUrl: '/patient', // 页面对应的地址
      level: 1, // 层次
      children: [
        // 子菜单
        {
          id: 2,
          name: '患者列表',
          menuCode: 'PatientList',
          parentId: 1,
          iconUrl: 'patient_list',
          linkUrl: '/patient/list',
          level: 2
        },
        {
          id: 3,
          name: '会诊管理',
          menuCode: 'Consultation',
          parentId: 1,
          iconUrl: 'patient_consultation',
          linkUrl: '/patient/consultation',
          level: 2
        },
        {
          id: 4,
          name: '新建患者',
          menuCode: 'PatientCreate',
          parentId: 1,
          iconUrl: 'patient_create',
          linkUrl: '/patient/create',
          level: 2
        },
        {
          id: 5,
          name: '患者查询',
          menuCode: 'PatientQuery',
          parentId: 1,
          iconUrl: 'patient_retrieve',
          linkUrl: '/patient/query',
          level: 2
        }
      ]
    },
    {
      id: 6,
      name: '床旁监测',
      menuCode: 'Monitor',
      parentId: 0,
      iconUrl: '',
      linkUrl: '/monitor',
      level: 1,
      children: [
        {
          id: 7,
          name: '血糖监测',
          menuCode: 'BloodSugar',
          parentId: 6,
          iconUrl: 'monitor_bs',
          linkUrl: '/monitor/blood_sugar',
          level: 2
        },
        {
          id: 8,
          name: '血气监测',
          menuCode: 'BloodGas',
          parentId: 6,
          iconUrl: 'monitor_bg',
          linkUrl: '/monitor/blood_gas',
          level: 2
        },
        {
          id: 9,
          name: '心标监测',
          menuCode: 'Heart',
          parentId: 6,
          iconUrl: 'monitor_heart',
          linkUrl: '/monitor/heart',
          level: 2
        },
        {
          id: 10,
          name: '血凝监测',
          menuCode: 'BloodClotting',
          parentId: 6,
          iconUrl: 'monitor_bc',
          linkUrl: '/monitor/blood_clotting',
          level: 2
        }
      ]
    },
    {
      id: 11,
      name: '科室报表',
      menuCode: 'DeptReport',
      parentId: 0,
      iconUrl: '',
      linkUrl: '/dept_report',
      level: 2,
      children: [
        {
          id: 12,
          name: '科室图谱',
          menuCode: 'Atlas',
          parentId: 11,
          iconUrl: 'dbs_home',
          linkUrl: '/dept_report/atlas',
          level: 2
        },
        {
          id: 13,
          name: '血糖报表',
          menuCode: 'BSReport',
          parentId: 11,
          iconUrl: 'dbs_report',
          linkUrl: '/dept_report/bs_report',
          level: 2
        },
        {
          id: 14,
          name: '血气报表',
          menuCode: 'BGReport',
          parentId: 11,
          iconUrl: 'dbs_report',
          linkUrl: '/dept_report/bg_report',
          level: 2
        },
        {
          id: 15,
          name: '心标报表',
          menuCode: 'HeartReport',
          parentId: 11,
          iconUrl: 'dbs_report',
          linkUrl: '/dept_report/heart_report',
          level: 2
        },
        {
          id: 16,
          name: '血凝报表',
          menuCode: 'BCReport',
          parentId: 11,
          iconUrl: 'dbs_report',
          linkUrl: '/dept_report/bc_report',
          level: 2
        },
        {
          id: 17,
          name: '工作量',
          menuCode: 'Workload',
          parentId: 11,
          iconUrl: 'dbs_workload',
          linkUrl: '/dept_report/workload',
          level: 2
        }
      ]
    }
  ],
  status: 200,
  msg: 'success'
})
